﻿@model BLL.BO.Challenger
@{
    ViewBag.Title = "Challenger részletek";
}

<p>Név: @Model.Name</p>
<p>Filmek: 
@if (Model.Films.Count == 0)
{
    @:-
}
else
{
    @Html.Raw(String.Join(",", Model.Films.Select(f => Html.ActionLink(f.Title, "ChallengeDetail", new { id = f.Id }))))
}
</p>
@{
    double exp = 0;
    foreach (var item in Model.Films)
	{
        exp += item.Length * (10.0 - item.IMDB) * (10.0 - item.IMDB);
	}
}
<p>Tapasztalati pont: @(((int)exp / 100) * 100)</p>